function initPage(baseInfoJson,cureInfo){
	var basePath = $("#basePath").val();
	var bloodTypes = baseInfoJson['bloodTypes'];//ABO血型
	
	var rhBloodTypes = baseInfoJson['rhBloodTypes'];//RH血型
	
	var diagAccordTypes = baseInfoJson['diagAccordTypes'];//诊断对比符合类型
	
	var diagAccordRecords = cureInfo['diagAccordRecords'];//诊断对比符合记录集合
	
	var cureWorkers = cureInfo['cureWorkers'];//治疗医师集合
	
	$("select").each(function(){
		$(this).append("<option value=''>---请选择---</option>");
	});
	
	$(".bloodTypeCodeSelect").each(function(){
		var options = "";
		for(var index in bloodTypes){
			var bloodType = bloodTypes[index];
	    	options+="<option value='"+bloodType.uniq_code+"'>"+bloodType.label+"</option>"
	    } 
       $(this).append(options);
       $(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
       
       if(cureInfo.bloodTypeCode){
    		
	   		var selectOption = $(this).find("option[value='"+cureInfo.bloodTypeCode+"']")
	   		if(selectOption.length > 0){
	   			selectOption.attr("selected",true);
	   		}else{
	   			$(this).append("<option selected='selected' value='"+cureInfo.bloodTypeCode+"'>"+cureInfo.bloodTypeName+"</option>");
	   		}
	   		
	   }
      $(this).next("input[name='"+$(this).attr("name").replace("Code", "Name")+"']").val(cureInfo.bloodTypeName);
	   
	});
	
	$(".rhBloodTypeCodeSelect").each(function(){
		var options = "";
		for(var index in rhBloodTypes){
			var rhBloodType = rhBloodTypes[index];
	    	options+="<option value='"+rhBloodType.uniq_code+"'>"+rhBloodType.label+"</option>"
	    } 
       $(this).append(options);
       $(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
       
       if(cureInfo.rhBloodTypeCode){
     		
	   		var selectOption = $(this).find("option[value='"+cureInfo.rhBloodTypeCode+"']")
	   		if(selectOption.length > 0){
	   			selectOption.attr("selected",true);
	   		}else{
	   			$(this).append("<option selected='selected' value='"+cureInfo.rhBloodTypeCode+"'>"+cureInfo.rhBloodTypeName+"</option>");
	   		}
	   		
	   }
       $(this).next("input[name='"+$(this).attr("name").replace("Code", "Name")+"']").val(cureInfo.rhBloodTypeName);
	   
	});
	
	$("input[name='followUpClinicLimitCode']").each(function(){
		 $(this).click(function(){
			 var followUpClinicLimitNameValue = "";
			 if($(this).val()=="1"){
				 followUpClinicLimitNameValue = "是";
			 }else if($(this).val()=="0"){
				 followUpClinicLimitNameValue = "否";
			 }
			 $(this).nextAll("input[name='"+$(this).attr("name").replace("Code", "Name")+"']").val(followUpClinicLimitNameValue);
		 });
	});
	
	if(cureInfo.followUpClinicLimitCode){
		$("input[name='followUpClinicLimitCode'][value='"+cureInfo.followUpClinicLimitCode+"']").attr("checked",true);
	}
	$("input[name='followUpClinicLimitName']").val(cureInfo.followUpClinicLimitName);
	
	
	$(".diagAccordCodeSelect").each(function(){
		var options = "";
		for(var index in diagAccordTypes){
			var diagAccordType = diagAccordTypes[index];
	    	options+="<option value='"+diagAccordType.uniq_code+"'>"+diagAccordType.label+"</option>"
	    } 
       $(this).append(options);
       $(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
      
	});
	for(var index in diagAccordRecords){
		var diagAccordRecord = diagAccordRecords[index];
		var diagCompareNameObj = $("input[value='"+diagAccordRecord.diagCompareName+"']");
		diagCompareNameObj.nextAll("select[class='diagAccordCodeSelect']").each(function(){
			if(diagAccordRecord.diagAccordCode){
	     		
		   		var selectOption = $(this).find("option[value='"+diagAccordRecord.diagAccordCode+"']")
		   		if(selectOption.length > 0){
		   			selectOption.attr("selected",true);
		   		}else{
		   			$(this).append("<option selected='selected' value='"+diagAccordRecord.diagAccordCode+"'>"+diagAccordRecord.diagAccordName+"</option>");
		   		}
		   		
		   }
			$(this).next("input[name='"+$(this).attr("name").replace("Code", "Name")+"']").val(diagAccordRecord.diagAccordName);
		});
    } 
	
	for(var index in cureWorkers){
		var cureWorker = cureWorkers[index];
		var professionTitleNameObj = $("input[value='"+cureWorker.professionTitleName+"']");
		professionTitleNameObj.nextAll("input[class='cureMedicalWorkerSearchInput']").each(function(){
			$(this).val(cureWorker.medicalWorkerName);
			$(this).next("input[name='"+$(this).attr("name").replace("Name", "Code")+"']").val(cureWorker.medicalWorkerName);
			
		});
    } 
	
	$(".cureMedicalWorkerSearchInput").autocomplete({
		source: function( request, response ) {
			var eventObj = $(this.element);
			
			var codeObjName = eventObj.attr("name").replace("Name", "Code");
			eventObj.next("input[name='"+codeObjName+"']").val("");
			$.ajax({
				url: basePath + "base_info/ajax_medical_worker_by_query_name",
				dataType: "json",
				data:{
					queryName: request.term
				},
				success: function( data ) {
				response( $.map( data, function( item ) {
					return {
						label:item.label,
						uniq_code:item.uniq_code
					}
				}));
			}
		});
		},
		minLength: 1,
		select: function( event, ui ) {
			var eventObj = $(this);
			var item = ui.item;
			var codeObjName = eventObj.attr("name").replace("Name", "Code");
			eventObj.next("input[name='"+codeObjName+"']").val(item.uniq_code);
		},search: function( event, ui ) {
			var eventObj = $(this);
			var codeObjName = eventObj.attr("name").replace("Name", "Code");
			eventObj.next("input[name='"+codeObjName+"']").val("");
		}
	});
	
	
	
	
}